package com.guide.framework.datasource.impl;

import org.springframework.stereotype.Service;

import com.guide.framework.datasource.ShardingManager;

@Service(value="newoorShardingManager")
public class NewoorShardingManager implements ShardingManager<Integer>{

	private static final int DATASOURCE_COUNT = 1;
	private String dataSourceFormat = "datasource";
	
	@Override
	public String getDataSourceKey(Integer shardingKey) {
//		return String.format(dataSourceFormat, shardingKey % DATASOURCE_COUNT );
		return dataSourceFormat;
	}

}
